Package com.cisco.pt.ipc.sim.impl
Class AsaObjectManagerImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.AsaObjectManagerImpl
- All Implemented Interfaces:
IPCObject,AsaObjectManager
Information provided by the PKI file:
\class CAsaObjectManager
\brief CAsaObjectManager is the asa object storage manager class that is used to store and retrieve asa object.
\example network().getDevice("Router0").getObjectManager()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionAsaObjectManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptioncreateObject(ObjectType type, String objName) Information provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:getObjectAt(int index) Information provided by the PKI file:getObjectByName(String objName) Information provided by the PKI file:intInformation provided by the PKI file:voidnameifChanged(String newName, String oldName) Information provided by the PKI file:voidremoveObjectByName(String objName) Information provided by the PKI file:voidsetMostUse(int mostUse) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
AsaObjectManagerImpl
public AsaObjectManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getObjectByName
Information provided by the PKI file:
\brief Returns the asa object based on name \param objName, object name. \return CAsaObject, value is the asa object based on name.- Specified by:
getObjectByNamein interfaceAsaObjectManager- Parameters:
objName- Takes in a parameter of objName- Returns:
- AsaObject Returns a AsaObject
-
createObject
Information provided by the PKI file:
\brief Creates an asa object. \param objName, object name \param type, asa object type, values: eNetwork = 0, eService = 1, eGroupService = 2, eGroupServiceTcp = 3, eGroupServiceUdp = 4, eGroupServiceTcpUdp = 5, eGroupNetwork = 6, eWebvpn = 7 \return CAsaObject, value is the asa object that is newly created.- Specified by:
createObjectin interfaceAsaObjectManager- Parameters:
type- Takes in a parameter of typeobjName- Takes in a parameter of objName- Returns:
- AsaObject Returns a AsaObject
-
removeObjectByName
Information provided by the PKI file:
\brief Remove the asa object based on name \param objName, object name to search with.- Specified by:
removeObjectByNamein interfaceAsaObjectManager- Parameters:
objName- Takes in a parameter of objName
-
getNatObjectCount
public int getNatObjectCount()Information provided by the PKI file:
\brief Get Number of Nat Objects \return int, value is the number of nat objects that are stored.- Specified by:
getNatObjectCountin interfaceAsaObjectManager- Returns:
- int Returns a int
-
getMostUse
public int getMostUse()Information provided by the PKI file:
\brief Get the number of static and dynamic nat entries have been used \return int, value is the number of static and dynamic nat entries have been used- Specified by:
getMostUsein interfaceAsaObjectManager- Returns:
- int Returns a int
-
setMostUse
public void setMostUse(int mostUse) Information provided by the PKI file:
\brief Set the number of static and dynamic nat entries have been used \param mostUse, the number of static and dynamic nat entries have been used- Specified by:
setMostUsein interfaceAsaObjectManager- Parameters:
mostUse- Takes in a parameter of mostUse
-
getObjectCount
public int getObjectCount()Information provided by the PKI file:
\brief Get the number of asa objects \return int, value is the number of asa objects.- Specified by:
getObjectCountin interfaceAsaObjectManager- Returns:
- int Returns a int
-
getObjectAt
Information provided by the PKI file:
\brief Get the Asa object at a specified index \param index, index of the asa object to get. Range is (0, getObjectCount()). \return value is the Asa object at the specified index.- Specified by:
getObjectAtin interfaceAsaObjectManager- Parameters:
index- Takes in a parameter of index- Returns:
- AsaObject Returns a AsaObject
-
nameifChanged
Information provided by the PKI file:
\brief This function updates the asa object that has reference to interface nameIf \param newName, the interface new nameIf \param oldName, the interface old nameIf- Specified by:
nameifChangedin interfaceAsaObjectManager- Parameters:
newName- Takes in a parameter of newNameoldName- Takes in a parameter of oldName
-